﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project.B12.Model.Error
{
    public enum B12ErrCode
    {
        [ErrorCodeItem(Message = "{0}", Solution = "")]
        Error,

        SoftwareException,
        ModuleException,
        ExcuteException,

        // 1. 系统
        System_Cpu_Busy,

        System_Disk_RunOut,

        // 2. 数据库
        [ErrorCodeItem(Message = "数据库错误。", Solution = "1、检查数据库是否存在。2、重启软件")]
        Database_Fail,

        // 3. 质控
        QC_12S, // 失控

        QC_13S,

        [ErrorCodeItem(Message = "注册校准品失败,Name{0},BatchNo{1}")]
        Cal_Register_Failed,

        [ErrorCodeItem(Message = "更新校准品失败,Id{0}")]
        Cal_Update_Register_Failed,

        Cal_, // 校准计算错误

        // 4. 样本
        [ErrorCodeItem(Message = "申请样本异常。")]
        Sample_Apply_Failed,

        [ErrorCodeItem(
            Message = "取消样本测试申请失败,样本Id{0},测试Id{1}",
            Solution = "解决方案demo")]
        Sample_Cancel_SampleTestApplication_Failed,

        [ErrorCodeItem(Message = "样本测试异常,编号{0},ID{1},项目{1}")]
        Sample_Test_Exception,

        [ErrorCodeItem(Message = "样本测试异常")]
        Sample_Tests_Exception,

        Sample_, // 样本结果计算错误

        // 5. 项目错误  - 超过有效期、校准过期

        // 6. 时序错误 - 测试过程中试剂/样本/耗材不足或未装载...

        // 7. LIS通讯错误
    }
}
